
public class HW7_2SP1 {

	   public static void main(String args[])
	   {
	      int array[][]={{1,2,3,4,5},{6,7,8,9}};
	      
	      square(array);
	      for (int i=0; i<array.length; i++)
	      {
	         for (int j=0; j<array[i].length; j++)
	            System.out.print(array[i][j]+" ");
	         System.out.print('\n');
	      }
	   }
	   
	   public static void square(int arr[][])
	   {
	      for (int i=0; i<arr.length; i++)
	      {
	         for (int j=0; j<arr[i].length; j++)
	            arr[i][j]=arr[i][j]*arr[i][j];
	      }
	   }
}
